<h1>标签列表</h1>
<table class="listing">
  <tr>  
  <thead>
    <th width="15%">标签编号</th>
    <th >名称</th>
    <th width="8%">编辑</th>
    <th width="8%">删除</th>
  </thead>
  </tr>
<% @tags_.each_with_index do |tag,i| %>
  <tr class="line<%=i%2%>">
    <td><%=h tag.id %></td>
    <td><%=h tag.name %></td>
    <td ><%= link_to image_tag("edit.gif",:size => "16x16"), :action => 'edit',:id => tag %></td>
    <td ><%= link_to image_tag("delete.gif",:size => "16x16"), { :action => 'destroy',:id => tag}, :confirm => "确认删除?", :post => true %></td>
  </tr>
<% end %>
</table>

<%=render :partial => 'shared/paginate' , :object => @tags_pages%>
<br />